package Builder_Patten.computer;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public abstract class ComputerBuilder {
    protected Computer computer=new Computer();
    public abstract void buildType();
    public abstract void buildCPU();
    public abstract void buildMemory();
    public abstract void buildHard_disk();
    public abstract void buildHost();
    public abstract void buildMonitor();

    public boolean isMonitor(){
        return false;
    }
    public Computer construct(){
        this.buildType();
        this.buildCPU();
        this.buildMemory();
        this.buildHard_disk();
        this.buildHost();
        this.buildMonitor();
        return computer;
    }
}
